package com.cly.feign.hystrix;

import com.alibaba.fastjson.JSON;
import com.cly.domain.Sku;
import com.cly.feign.CartSkuFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class CartSkuFeignHystrix implements CartSkuFeign {
    /**
     * 远程调用根基skuId 查询 sku 集合
     *
     * @param skuId
     * @return
     */
    @Override
    public List<Sku> getSkuListByIds(List<Long> skuId) {
        log.error("远程调用根据skuIds查询sku集合 失败 {}", JSON.toJSONString(skuId));
        return null;
    }
}
